import axios from '../../request'

export default {
    // 科目添加
    subjectpost(sname) {
        return axios.post(`/question/subject/save`,sname);
    },
    // 科目修改
    subjectupdate(sname){
        return axios.put(`http://192.168.0.119:9090/question/subject/update`,sname);
    },
    // 首艘
    subjectpget(key){
        return axios.get(`/question/subject/get/${key}`);
    },
    // 每页多少条
    subjectpgetlist(pageSize){
        return axios.get(`/question/subject/list/?pageSize=${pageSize}`)
    },
    subjectpgetlists(val,pageSize){
        return axios.get(`/question/subject/list/?page=${val}&pageSize=${pageSize}`)
    },
}